#![allow(dead_code)]
#![allow(unused_variables)]

use std::time::Duration;

pub mod auth;
pub mod db;
pub mod filex;
pub mod parse;

// The URL format is redis://[<username>][:<password>@]<hostname>[:port][/<db>]
// If Unix socket support is available you can use a unix URL in this format:
// redis+unix:///<path>[?db=<db>[&pass=<password>][&user=<username>]]
// For compatibility with some other redis libraries, the “unix” scheme is also supported:
// unix:///<path>[?db=<db>][&pass=<password>][&user=<username>]]
fn do_something() -> redis::RedisResult<()> {
    let client = redis::Client::open("redis://192.168.8.20/")?;
    client
        .get_connection_with_timeout(Duration::new(2, 0))
        .unwrap();
    let con = client.get_connection()?;
    Ok(())
}
